from django.db import models

# Create your models here.

class Teacher_M(models.Model):
    name=models.CharField(max_length=20)
    gender=models.CharField(max_length=10)


class Student_M(models.Model):
    name=models.CharField(max_length=20)
    age=models.IntegerField()
    tid=models.ForeignKey(to=Teacher_M,on_delete=models.CASCADE)
